
import 'package:flutter/material.dart';
import 'package:flutter_my_app/wallet_page.dart';
import 'package:flutter_my_app/my_change_notifier_widget.dart';
import 'package:flutter_my_app/provider/greeting_state_provider.dart';
import 'package:flutter_my_app/provider/my_change_notifier_provider.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'greeting_state_widget.dart';

void main() {
  runApp(
    ProviderScope(
      child: MyApp(),
    ),
  );
}
// Extend ConsumerWidget instead of StatelessWidget, which is exposed by Riverpod
class MyApp extends ConsumerWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    //final String value = ref.watch(greetingProvider);
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Fluter_my_app')),
        body:SingleChildScrollView(
            child: Column(
              children: [
                // GreetingWidget(),
                // MyChangeNotifierWiget(),
                WalletPage()
              ],
            )
        ),
      ),
    );
  }
}